@extends('Admin/layout.layout')
@section('title')
	<title>栏目信息修改</title>
@endsection
@section('con')
<div class="row"> 
   <div class="col-lg-12"> 
    <h1 class="page-header">修改栏目信息</h1> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
  <div class="row"> 
   <div class="col-lg-12"> 
    <div class="panel panel-default"> 
     <div class="panel-heading">
      
     </div> 
     <div class="row">
      
     </div> 


     <div class="panel-body"> 
      <div class="row col-xd-4 col-xd-offset-4"> 
       <div class="col-md-6 col-md-offset-3">
       <div class="col-md-6 col-md-offset-3">     
        <form role="form" action="{{url('/admin/ask/update')}}" method="post"> 
         @if (count($errors) > 0)
          <div class="alert alert-danger">
              <ul>
                  @foreach ($errors->all() as $error)
                      <li>{{ $error }}</li>
                  @endforeach
              </ul>
          </div>
      @endif
       <div class="col-md-6 col-md-offset-3">
     
        <form role="form" action="{{url('/admin/ask/update')}}" method="post" enctype="multipart/form-data"> 
         <div class="form-group"> 
          <label>栏目名称</label> 
          <input class="form-control" name="tname" value="{{$res->tname}}"> 
          <input type="hidden" name="id" value="{{$res->id}}">
         </div class="row col-md-6 col-offset-3"> 
         <div class="form-group"> 
        <label>当前类别展示图</label><br>
        <img src='{{asset("$res->pic")}}' width="180px" height="180px"> 
       
        </div class="row col-md-6 col-offset-3"> 
        <div class="form-group"> 
        <label>修改类别图片</label> 
        <input type="file" name="pic" /> 
        </div class="row col-md-6 col-offset-3">   
         <button class="btn btn-success" type="submit">确定</button>
         {{csrf_field()}}
         
       </form>
         <div class="form-group"> 
         </div>  
       <!-- /.col-lg-6 (nested) --> 
       </div>
       </div>
      </div> 
      <!-- /.row (nested) --> 
     </div> 
     <!-- /.panel-body --> 
    </div> 
    <!-- /.panel --> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
           


@endsection

